<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['prefix'=>'v1/auth','namespace'=>'Api'],function (){
    Route::post('login','UserController@login');
    Route::get('logout','UserController@logout');
});

Route::group(['prefix'=>'v1','namespace'=>'Api'],function (){
    Route::resource('place','PlaceController');
    Route::post('schedule','ScheduleController@create');
    Route::delete('schedule/{id}','ScheduleController@delete');
    Route::get('schedule','ScheduleController@index');
});